帐号相关的接口
All
| 方法 | 描述 |
|---|---|
public static List<SipAccount> getAllSipAccounts(); |
获取所有的sip帐号(不检验是否注册/激活)
返回值:return List支持的产品:All |
public static List<SipAccount> getUsableSipAccounts(); |
获取可用的Sip帐号(检验是否注册/激活)
返回值:return List支持的产品:All |
public static BaseAccount getAccountById(int accountId); |
根据帐号编号获取帐号
参数:返回值:return 返回BaseAccount类型的帐号,可根据帐号类型进行强转型支持的产品:All |
public static SipAccount getSipAccountById(int accountId); |
根据帐号编号获取Sip帐号
参数:返回值:return 返回SipAccount帐号支持的产品:All |
public static boolean updateSipAccount(SipAccount sipAccount); |
更新SIP帐号信息。注意空值会导致原有数值清除。
参数:支持的产品:All |
public static boolean addStatusListener(String pkgForDebug, IAccountStatusListener callback, int events, boolean notifyNow); |
注册监听,关注线路注册、激活等相关状态的变化
参数:返回值:return 请求操作是否成功,不代表该功能的结果, true:成功 false:失败支持的产品:All |
public static boolean removeStatusListener(IAccountStatusListener callback); |
注销监听
参数:返回值:return 请求操作是否成功,不代表该功能的结果, true:成功 false:失败支持的产品:All |
public static boolean isSipAccount(int accountId); |
判断是否为sip帐号
参数:返回值:return 是否为sip帐号支持的产品:All |
| 成员 | 描述 |
|---|---|
public static final String API |
BaseAccountApi的标签名,用于在ApiClient中注册. {@link com.gs.common.client.ApiClient.Builder#addApi(String)} 支持的产品:All |